docs: Add URL maps for cross links
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:46:02 +0000 (16:46 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:46:02 +0000 (16:46 +0000)
docs/reference/gdk/gdk4.toml.in
docs/reference/gdk/urlmap.js [new file with mode: 0644]
docs/reference/gsk/gsk4.toml.in
docs/reference/gsk/urlmap.js [new file with mode: 0644]
docs/reference/gtk/gtk4.toml.in
docs/reference/gtk/urlmap.js [new file with mode: 0644]

index 094e1e966ffe59b0f5e7e043306d0d831c5ea8e4..f720744f9f4fde5ddcfde80bec1960c26099382a 100644 (file)
@@ -94,3 +94,4 @@ content_images = [
   "images/popup-flip.png",
   "images/popup-slide.png",
 ]
+urlmap_file = "urlmap.js"
diff --git a/docs/reference/gdk/urlmap.js b/docs/reference/gdk/urlmap.js
new file mode 100644 (file)
index 0000000..eaf2de9
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: 2021 GNOME Foundation
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+// A map between namespaces and base URLs for their online documentation
+baseURLs = [
+    [ 'Gdk', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4/' ],
+    [ 'GdkWayland', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4-wayland/' ],
+    [ 'GdkX11', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4-x11/' ],
+    [ 'Gsk', 'https://gnome.pages.gitlab.gnome.org/gtk/gsk4/' ],
+    [ 'Gtk', 'https://gnome.pages.gitlab.gnome.org/gtk/gtk4/' ],
+    [ 'Pango', 'https://gnome.pages/gitlab.gnome.org/pango/pango/' ],
+    [ 'PangoCairo', 'https://gnome.pages.gitlab.gnome.org/pango/pangocairo/' ],
+]
index 2eb7980555e018a5ce1e7bd88d4e0a88663ddc75..44d11c9d9b308e9efef48e10c8dccdda43b2c8c7 100644 (file)
@@ -43,3 +43,4 @@ base_url = "https://gitlab.gnome.org/GNOME/gtk/-/blob/master/"
 content_images = [
   "gtk-logo.svg",
 ]
+urlmap_file = "urlmap.js"
diff --git a/docs/reference/gsk/urlmap.js b/docs/reference/gsk/urlmap.js
new file mode 100644 (file)
index 0000000..eaf2de9
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: 2021 GNOME Foundation
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+// A map between namespaces and base URLs for their online documentation
+baseURLs = [
+    [ 'Gdk', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4/' ],
+    [ 'GdkWayland', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4-wayland/' ],
+    [ 'GdkX11', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4-x11/' ],
+    [ 'Gsk', 'https://gnome.pages.gitlab.gnome.org/gtk/gsk4/' ],
+    [ 'Gtk', 'https://gnome.pages.gitlab.gnome.org/gtk/gtk4/' ],
+    [ 'Pango', 'https://gnome.pages/gitlab.gnome.org/pango/pango/' ],
+    [ 'PangoCairo', 'https://gnome.pages.gitlab.gnome.org/pango/pangocairo/' ],
+]
index 189b65b2e00eebbcc8dd3afa7d2a70152df24034..0f79fe49103335a50a284b7c7b2985b0d7ba718f 100644 (file)
@@ -232,3 +232,4 @@ content_images = [
   "images/data-table.png",
   "images/navigation-sidebar.png",
 ]
+urlmap_file = "urlmap.js"
diff --git a/docs/reference/gtk/urlmap.js b/docs/reference/gtk/urlmap.js
new file mode 100644 (file)
index 0000000..eaf2de9
--- /dev/null
@@ -0,0 +1,13 @@
+// SPDX-FileCopyrightText: 2021 GNOME Foundation
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+// A map between namespaces and base URLs for their online documentation
+baseURLs = [
+    [ 'Gdk', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4/' ],
+    [ 'GdkWayland', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4-wayland/' ],
+    [ 'GdkX11', 'https://gnome.pages.gitlab.gnome.org/gtk/gdk4-x11/' ],
+    [ 'Gsk', 'https://gnome.pages.gitlab.gnome.org/gtk/gsk4/' ],
+    [ 'Gtk', 'https://gnome.pages.gitlab.gnome.org/gtk/gtk4/' ],
+    [ 'Pango', 'https://gnome.pages/gitlab.gnome.org/pango/pango/' ],
+    [ 'PangoCairo', 'https://gnome.pages.gitlab.gnome.org/pango/pangocairo/' ],
+]